/**
 * Created:	2001-7-
 * By:		eeorange
 * About: 	zju 1005 - Jugs
 * Status:	AC 0ms 188KB
 */

#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
using namespace std;


int main(){
	#ifdef LOCAL
		freopen("data.in", "r", stdin);
	#endif
	
	int a, b, t;
	while(scanf("%d%d%d", &a, &b, &t) == 3)
	{
		int c = 0;	// waters in B
		while(c != t){
			printf("fill A\n");
			printf("pour A B\n");
			c += a;
			if(c > b) // 溢出
			{
				c -= b;
				printf("empty B\npour A B\n");
			}
		}
		printf("success\n");
	}
	
	
	#ifdef LOCAL
		printf("\nTime used = %.3lf\n", (double)clock()/CLOCKS_PER_SEC);
		printf("****** END ******\n");
	#endif
	return 0;
}


